cmake_minimum_required(VERSION 3.5.0)
project(mono_demo)

set(CMAKE_CXX_STANDARD 17)

include_directories(${CMAKE_SOURCE_DIR}/include)
include_directories(/usr/include/mono-2.0)

add_subdirectory(src)

add_executable(main main.cpp ${local_src} ${local_header})
target_link_libraries(main PUBLIC mono_x)

if(UNIX)
set(CMAKE_INSTALL_INCLUDEDIR /usr/local)
set(CMAKE_INSTALL_LIBDIR /usr/local/lib)

install(TARGETS mono_x
        ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
)

install(DIRECTORY include
        DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})


endif()